.class public Ljavax/microedition/lcdui/ChoiceGroup;
.super Ljavax/microedition/lcdui/Item;
.source "ChoiceGroup.java"

# interfaces
.implements Ljavax/microedition/lcdui/Choice;


# annotations
.annotation system Ldalvik/annotation/MemberClasses;
    value = {
        Ljavax/microedition/lcdui/ChoiceGroup$ImplicitListener;,
        Ljavax/microedition/lcdui/ChoiceGroup$ChoiceItem;
    }
.end annotation


# static fields
.field private static final imgMultiOff:Ljavax/microedition/lcdui/Image;

.field private static final imgMultiOn:Ljavax/microedition/lcdui/Image;

.field private static final imgRadioOff:Ljavax/microedition/lcdui/Image;

.field private static final imgRadioOn:Ljavax/microedition/lcdui/Image;

.field private static multiOff:[B

.field private static multiOn:[B

.field private static radioOff:[B

.field private static radioOn:[B


# instance fields
.field choiceType:I

.field private fitPolicy:I

.field private highlightedItemIndex:I

.field private items:[Ljavax/microedition/lcdui/ChoiceGroup$ChoiceItem;

.field private numOfItems:I

.field private popupList:Ljavax/microedition/lcdui/List;


# direct methods
.method static constructor <clinit>()V
    .locals 3

    .prologue
    const/4 v2, 0x0

    .line 40
    const/16 v0, 0x69

    new-array v0, v0, [B

    fill-array-data v0, :array_0

    sput-object v0, Ljavax/microedition/lcdui/ChoiceGroup;->multiOff:[B

    .line 54
    const/16 v0, 0x86

    new-array v0, v0, [B

    fill-array-data v0, :array_1

    sput-object v0, Ljavax/microedition/lcdui/ChoiceGroup;->multiOn:[B

    .line 71
    const/16 v0, 0x78

    new-array v0, v0, [B

    fill-array-data v0, :array_2

    sput-object v0, Ljavax/microedition/lcdui/ChoiceGroup;->radioOff:[B

    .line 86
    const/16 v0, 0x83

    new-array v0, v0, [B

    fill-array-data v0, :array_3

    sput-object v0, Ljavax/microedition/lcdui/ChoiceGroup;->radioOn:[B

    .line 103
    sget-object v0, Ljavax/microedition/lcdui/ChoiceGroup;->multiOff:[B

    sget-object v1, Ljavax/microedition/lcdui/ChoiceGroup;->multiOff:[B

    array-length v1, v1

    invoke-static {v0, v2, v1}, Ljavax/microedition/lcdui/Image;->createImage([BII)Ljavax/microedition/lcdui/Image;

    move-result-object v0

    sput-object v0, Ljavax/microedition/lcdui/ChoiceGroup;->imgMultiOff:Ljavax/microedition/lcdui/Image;

    .line 104
    sget-object v0, Ljavax/microedition/lcdui/ChoiceGroup;->multiOn:[B

    sget-object v1, Ljavax/microedition/lcdui/ChoiceGroup;->multiOn:[B

    array-length v1, v1

    invoke-static {v0, v2, v1}, Ljavax/microedition/lcdui/Image;->createImage([BII)Ljavax/microedition/lcdui/Image;

    move-result-object v0

    sput-object v0, Ljavax/microedition/lcdui/ChoiceGroup;->imgMultiOn:Ljavax/microedition/lcdui/Image;

    .line 105
    sget-object v0, Ljavax/microedition/lcdui/ChoiceGroup;->radioOff:[B

    sget-object v1, Ljavax/microedition/lcdui/ChoiceGroup;->radioOff:[B

    array-length v1, v1

    invoke-static {v0, v2, v1}, Ljavax/microedition/lcdui/Image;->createImage([BII)Ljavax/microedition/lcdui/Image;

    move-result-object v0

    sput-object v0, Ljavax/microedition/lcdui/ChoiceGroup;->imgRadioOff:Ljavax/microedition/lcdui/Image;

    .line 106
    sget-object v0, Ljavax/microedition/lcdui/ChoiceGroup;->radioOn:[B

    sget-object v1, Ljavax/microedition/lcdui/ChoiceGroup;->radioOn:[B

    array-length v1, v1

    invoke-static {v0, v2, v1}, Ljavax/microedition/lcdui/Image;->createImage([BII)Ljavax/microedition/lcdui/Image;

    move-result-object v0

    sput-object v0, Ljavax/microedition/lcdui/ChoiceGroup;->imgRadioOn:Ljavax/microedition/lcdui/Image;

    return-void

    .line 40
    :array_0
    .array-data 0x1
        0x89t
        0x50t
        0x4et
        0x47t
        0xdt
        0xat
        0x1at
        0xat
        0x0t
        0x0t
        0x0t
        0xdt
        0x49t
        0x48t
        0x44t
        0x52t
        0x0t
        0x0t
        0x0t
        0xat
        0x0t
        0x0t
        0x0t
        0xbt
        0x2t
        0x3t
        0x0t
        0x0t
        0x0t
        0x3bt
        0x0t
        0xf4t
        0x8bt
        0x0t
        0x0t
        0x0t
        0x6t
        0x50t
        0x4ct
        0x54t
        0x45t
        0xfft
        0xfft
        0xfft
        0xbbt
        0xbbt
        0xbbt
        0xc7t
        0x4bt
        0xdft
        0xf8t
        0x0t
        0x0t
        0x0t
        0x1et
        0x49t
        0x44t
        0x41t
        0x54t
        0x78t
        0xdat
        0x63t
        0x60t
        0x60t
        0x60t
        0x60t
        0xct
        0x65t
        0xf8t
        0xcdt
        0xe0t
        0xc0t
        0x20t
        0xc0t
        0xc4t
        0xc0t
        0xc0t
        0x80t
        0xbt
        0x33t
        0x86t
        0x32t
        0xfct
        0x6t
        0x0t
        0x3ft
        0x74t
        0x3t
        0x1t
        0x35t
        0x94t
        0x27t
        0xe6t
        0x0t
        0x0t
        0x0t
        0x0t
        0x49t
        0x45t
        0x4et
        0x44t
        0xaet
        0x42t
        0x60t
        0x82t
    .end array-data

    .line 54
    nop

    :array_1
    .array-data 0x1
        0x89t
        0x50t
        0x4et
        0x47t
        0xdt
        0xat
        0x1at
        0xat
        0x0t
        0x0t
        0x0t
        0xdt
        0x49t
        0x48t
        0x44t
        0x52t
        0x0t
        0x0t
        0x0t
        0xat
        0x0t
        0x0t
        0x0t
        0xbt
        0x2t
        0x3t
        0x0t
        0x0t
        0x0t
        0x3bt
        0x0t
        0xf4t
        0x8bt
        0x0t
        0x0t
        0x0t
        0xct
        0x50t
        0x4ct
        0x54t
        0x45t
        0xfft
        0xfft
        0xfft
        0xbbt
        0xbbt
        0xbbt
        0x6at
        0x6at
        0x6at
        0x2t
        0x2t
        0x2t
        0x6at
        0x99t
        0xet
        0xd1t
        0x0t
        0x0t
        0x0t
        0x35t
        0x49t
        0x44t
        0x41t
        0x54t
        0x78t
        0xdat
        0x63t
        0x60t
        0x60t
        0x7ct
        0xc0t
        0xf0t
        0xfft
        0xb3t
        0x3t
        0xd3t
        0x41t
        0x91t
        0xft
        0x4ct
        0xct
        0x6ct
        0xct
        0x4ct
        0xct
        0xfct
        0xct
        0x4ct
        0xct
        0x12t
        0xct
        0x4ct
        0xbct
        0x7ft
        0x18t
        0x98t
        0x7et
        0x2dt
        0x60t
        0x60t
        0xf9t
        0xf5t
        0x93t
        0x81t
        0xe9t
        0xbft
        0x3t
        0x3t
        0xe3t
        0x7ft
        0x86t
        0x8ft
        0x0t
        0x5t
        0x25t
        0xct
        0xdet
        0x1t
        0x9dt
        0xadt
        0x64t
        0x0t
        0x0t
        0x0t
        0x0t
        0x49t
        0x45t
        0x4et
        0x44t
        0xaet
        0x42t
        0x60t
        0x82t
    .end array-data

    .line 71
    nop

    :array_2
    .array-data 0x1
        0x89t
        0x50t
        0x4et
        0x47t
        0xdt
        0xat
        0x1at
        0xat
        0x0t
        0x0t
        0x0t
        0xdt
        0x49t
        0x48t
        0x44t
        0x52t
        0x0t
        0x0t
        0x0t
        0xbt
        0x0t
        0x0t
        0x0t
        0xbt
        0x2t
        0x3t
        0x0t
        0x0t
        0x0t
        0xd4t
        0xc2t
        0x9ft
        0xb5t
        0x0t
        0x0t
        0x0t
        0x9t
        0x50t
        0x4ct
        0x54t
        0x45t
        0xfft
        0xfft
        0xfft
        0xbbt
        0xbbt
        0xbbt
        0x6at
        0x6at
        0x6at
        0xd4t
        0xdt
        0xfft
        0xe8t
        0x0t
        0x0t
        0x0t
        0x2at
        0x49t
        0x44t
        0x41t
        0x54t
        0x78t
        0xdat
        0x63t
        0x60t
        0x5at
        0xc5t
        0xc0t
        0x20t
        0xc1t
        0x30t
        0x81t
        0x41t
        0x81t
        0x41t
        0x81t
        0x29t
        0x81t
        0xe1t
        0x5t
        0x13t
        0x3t
        0x3t
        0x3t
        0x32t
        0x66t
        0x50t
        0x60t
        0x50t
        0x60t
        0xfat
        0xc1t
        0x50t
        0xc0t
        0xc0t
        0xb4t
        0x8at
        0x1t
        0x0t
        0x71t
        0x18t
        0x5t
        0x3dt
        0x49t
        0xbct
        0x9ct
        0x62t
        0x0t
        0x0t
        0x0t
        0x0t
        0x49t
        0x45t
        0x4et
        0x44t
        0xaet
        0x42t
        0x60t
        0x82t
    .end array-data

    .line 86
    :array_3
    .array-data 0x1
        0x89t
        0x50t
        0x4et
        0x47t
        0xdt
        0xat
        0x1at
        0xat
        0x0t
        0x0t
        0x0t
        0xdt
        0x49t
        0x48t
        0x44t
        0x52t
        0x0t
        0x0t
        0x0t
        0xbt
        0x0t
        0x0t
        0x0t
        0xbt
        0x2t
        0x3t
        0x0t
        0x0t
        0x0t
        0xd4t
        0xc2t
        0x9ft
        0xb5t
        0x0t
        0x0t
        0x0t
        0xct
        0x50t
        0x4ct
        0x54t
        0x45t
        0xfft
        0xfft
        0xfft
        0xbbt
        0xbbt
        0xbbt
        0x6at
        0x6at
        0x6at
        0x2t
        0x2t
        0x2t
        0x6at
        0x99t
        0xet
        0xd1t
        0x0t
        0x0t
        0x0t
        0x32t
        0x49t
        0x44t
        0x41t
        0x54t
        0x78t
        0xdat
        0x5t
        0xc1t
        0x41t
        0xdt
        0x0t
        0x20t
        0xct
        0x4t
        0xc1t
        0xedt
        0xf5t
        0x8bt
        0x1t
        0x12t
        0x44t
        0x9ct
        0xat
        0x34t
        0x13t
        0x5et
        0x48t
        0x40t
        0x11t
        0x65t
        0x86t
        0x2ct
        0xd4t
        0xe3t
        0x62t
        0xcct
        0x59t
        0x4dt
        0x9at
        0x28t
        0x2t
        0x55t
        0xa1t
        0xb7t
        0xc1t
        0x98t
        0xc1t
        0x25t
        0x8bt
        0xft
        0xd8t
        0x77t
        0xat
        0x29t
        0x4et
        0x1at
        0xb1t
        0x3bt
        0x0t
        0x0t
        0x0t
        0x0t
        0x49t
        0x45t
        0x4et
        0x44t
        0xaet
        0x42t
        0x60t
        0x82t
    .end array-data
.end method

.method public constructor <init>(Ljava/lang/String;I)V
    .locals 1
    .parameter "label"
    .parameter "choiceType"

    .prologue
    .line 111
    const/4 v0, 0x1

    invoke-direct {p0, p1, p2, v0}, Ljavax/microedition/lcdui/ChoiceGroup;-><init>(Ljava/lang/String;IZ)V

    .line 112
    return-void
.end method

.method constructor <init>(Ljava/lang/String;IZ)V
    .locals 2
    .parameter "label"
    .parameter "choiceType"
    .parameter "validateChoiceType"

    .prologue
    const/4 v1, 0x4

    .line 123
    invoke-direct {p0, p1}, Ljavax/microedition/lcdui/Item;-><init>(Ljava/lang/String;)V

    .line 30
    new-array v0, v1, [Ljavax/microedition/lcdui/ChoiceGroup$ChoiceItem;

    iput-object v0, p0, Ljavax/microedition/lcdui/ChoiceGroup;->items:[Ljavax/microedition/lcdui/ChoiceGroup$ChoiceItem;

    .line 32
    const/4 v0, 0x0

    iput v0, p0, Ljavax/microedition/lcdui/ChoiceGroup;->numOfItems:I

    .line 36
    const/4 v0, -0x1

    iput v0, p0, Ljavax/microedition/lcdui/ChoiceGroup;->highlightedItemIndex:I

    .line 125
    if-eqz p3, :cond_0

    .line 126
    if-eq p2, v1, :cond_0

    const/4 v0, 0x2

    if-eq p2, v0, :cond_0

    const/4 v0, 0x1

    if-eq p2, v0, :cond_0

    .line 127
    new-instance v0, Ljava/lang/IllegalArgumentException;

    const-string v1, "Illegal choice type"

    invoke-direct {v0, v1}, Ljava/lang/IllegalArgumentException;-><init>(Ljava/lang/String;)V

    throw v0

    .line 130
    :cond_0
    iput p2, p0, Ljavax/microedition/lcdui/ChoiceGroup;->choiceType:I

    .line 131
    if-ne p2, v1, :cond_1

    .line 134
    new-instance v0, Ljavax/microedition/lcdui/List;

    const/4 v1, 0x3

    invoke-direct {v0, p1, v1}, Ljavax/microedition/lcdui/List;-><init>(Ljava/lang/String;I)V

    iput-object v0, p0, Ljavax/microedition/lcdui/ChoiceGroup;->popupList:Ljavax/microedition/lcdui/List;

    .line 135
    iget-object v0, p0, Ljavax/microedition/lcdui/ChoiceGroup;->popupList:Ljavax/microedition/lcdui/List;

    new-instance v1, Ljavax/microedition/lcdui/ChoiceGroup$ImplicitListener;

    invoke-direct {v1, p0}, Ljavax/microedition/lcdui/ChoiceGroup$ImplicitListener;-><init>(Ljavax/microedition/lcdui/ChoiceGroup;)V

    invoke-virtual {v0, v1}, Ljavax/microedition/lcdui/List;->setCommandListener(Ljavax/microedition/lcdui/CommandListener;)V

    .line 137
    :cond_1
    return-void
.end method

.method public constructor <init>(Ljava/lang/String;I[Ljava/lang/String;[Ljavax/microedition/lcdui/Image;)V
    .locals 6
    .parameter "label"
    .parameter "choiceType"
    .parameter "stringElements"
    .parameter "imageElements"

    .prologue
    .line 117
    const/4 v5, 0x1

    move-object v0, p0

    move-object v1, p1

    move v2, p2

    move-object v3, p3

    move-object v4, p4

    invoke-direct/range {v0 .. v5}, Ljavax/microedition/lcdui/ChoiceGroup;-><init>(Ljava/lang/String;I[Ljava/lang/String;[Ljavax/microedition/lcdui/Image;Z)V

    .line 118
    return-void
.end method

.method constructor <init>(Ljava/lang/String;I[Ljava/lang/String;[Ljavax/microedition/lcdui/Image;Z)V
    .locals 3
    .parameter "label"
    .parameter "choiceType"
    .parameter "stringElements"
    .parameter "imageElements"
    .parameter "validateChoiceType"

    .prologue
    .line 143
    invoke-direct {p0, p1, p2, p5}, Ljavax/microedition/lcdui/ChoiceGroup;-><init>(Ljava/lang/String;IZ)V

    .line 145
    const/4 v0, 0x0

    .local v0, i:I
    :goto_0
    array-length v1, p3

    if-ge v0, v1, :cond_1

    .line 146
    if-nez p4, :cond_0

    .line 147
    aget-object v1, p3, v0

    const/4 v2, 0x0

    invoke-virtual {p0, v1, v2}, Ljavax/microedition/lcdui/ChoiceGroup;->append(Ljava/lang/String;Ljavax/microedition/lcdui/Image;)I

    .line 145
    :goto_1
    add-int/lit8 v0, v0, 0x1

    goto :goto_0

    .line 149
    :cond_0
    aget-object v1, p3, v0

    aget-object v2, p4, v0

    invoke-virtual {p0, v1, v2}, Ljavax/microedition/lcdui/ChoiceGroup;->append(Ljava/lang/String;Ljavax/microedition/lcdui/Image;)I

    goto :goto_1

    .line 152
    :cond_1
    return-void
.end method

.method static access$000()Ljavax/microedition/lcdui/Image;
    .locals 1

    .prologue
    .line 26
    sget-object v0, Ljavax/microedition/lcdui/ChoiceGroup;->imgRadioOn:Ljavax/microedition/lcdui/Image;

    return-object v0
.end method

.method static access$100()Ljavax/microedition/lcdui/Image;
    .locals 1

    .prologue
    .line 26
    sget-object v0, Ljavax/microedition/lcdui/ChoiceGroup;->imgRadioOff:Ljavax/microedition/lcdui/Image;

    return-object v0
.end method

.method static access$200()Ljavax/microedition/lcdui/Image;
    .locals 1

    .prologue
    .line 26
    sget-object v0, Ljavax/microedition/lcdui/ChoiceGroup;->imgMultiOn:Ljavax/microedition/lcdui/Image;

    return-object v0
.end method

.method static access$300()Ljavax/microedition/lcdui/Image;
    .locals 1

    .prologue
    .line 26
    sget-object v0, Ljavax/microedition/lcdui/ChoiceGroup;->imgMultiOff:Ljavax/microedition/lcdui/Image;

    return-object v0
.end method


# virtual methods
.method public append(Ljava/lang/String;Ljavax/microedition/lcdui/Image;)I
    .locals 2
    .parameter "stringPart"
    .parameter "imagePart"

    .prologue
    .line 157
    iget v0, p0, Ljavax/microedition/lcdui/ChoiceGroup;->numOfItems:I

    invoke-virtual {p0, v0, p1, p2}, Ljavax/microedition/lcdui/ChoiceGroup;->insert(ILjava/lang/String;Ljavax/microedition/lcdui/Image;)V

    .line 159
    iget v0, p0, Ljavax/microedition/lcdui/ChoiceGroup;->numOfItems:I

    const/4 v1, 0x1

    sub-int/2addr v0, v1

    return v0
.end method

.method public delete(I)V
    .locals 6
    .parameter "itemNum"

    .prologue
    const/4 v5, 0x4

    const/4 v4, 0x1

    .line 165
    if-ltz p1, :cond_0

    iget v0, p0, Ljavax/microedition/lcdui/ChoiceGroup;->numOfItems:I

    if-lt p1, v0, :cond_1

    .line 166
    :cond_0
    new-instance v0, Ljava/lang/IndexOutOfBoundsException;

    invoke-direct {v0}, Ljava/lang/IndexOutOfBoundsException;-><init>()V

    throw v0

    .line 170
    :cond_1
    iget v0, p0, Ljavax/microedition/lcdui/ChoiceGroup;->choiceType:I

    if-eq v4, v0, :cond_2

    iget v0, p0, Ljavax/microedition/lcdui/ChoiceGroup;->choiceType:I

    if-ne v5, v0, :cond_3

    :cond_2
    iget-object v0, p0, Ljavax/microedition/lcdui/ChoiceGroup;->items:[Ljavax/microedition/lcdui/ChoiceGroup$ChoiceItem;

    aget-object v0, v0, p1

    invoke-virtual {v0}, Ljavax/microedition/lcdui/ChoiceGroup$ChoiceItem;->isSelected()Z

    move-result v0

    if-eqz v0, :cond_3

    .line 172
    iget v0, p0, Ljavax/microedition/lcdui/ChoiceGroup;->numOfItems:I

    if-le v0, v4, :cond_3

    .line 173
    iget-object v0, p0, Ljavax/microedition/lcdui/ChoiceGroup;->items:[Ljavax/microedition/lcdui/ChoiceGroup$ChoiceItem;

    if-eqz p1, :cond_8

    const/4 v1, 0x0

    :goto_0
    aget-object v0, v0, v1

    invoke-virtual {v0, v4}, Ljavax/microedition/lcdui/ChoiceGroup$ChoiceItem;->setSelectedState(Z)V

    .line 178
    :cond_3
    iget v0, p0, Ljavax/microedition/lcdui/ChoiceGroup;->numOfItems:I

    sub-int/2addr v0, v4

    if-eq p1, v0, :cond_4

    .line 179
    iget-object v0, p0, Ljavax/microedition/lcdui/ChoiceGroup;->items:[Ljavax/microedition/lcdui/ChoiceGroup$ChoiceItem;

    add-int/lit8 v1, p1, 0x1

    iget-object v2, p0, Ljavax/microedition/lcdui/ChoiceGroup;->items:[Ljavax/microedition/lcdui/ChoiceGroup$ChoiceItem;

    iget v3, p0, Ljavax/microedition/lcdui/ChoiceGroup;->numOfItems:I

    sub-int/2addr v3, p1

    sub-int/2addr v3, v4

    invoke-static {v0, v1, v2, p1, v3}, Ljava/lang/System;->arraycopy(Ljava/lang/Object;ILjava/lang/Object;II)V

    .line 181
    :cond_4
    iget v0, p0, Ljavax/microedition/lcdui/ChoiceGroup;->numOfItems:I

    sub-int/2addr v0, v4

    iput v0, p0, Ljavax/microedition/lcdui/ChoiceGroup;->numOfItems:I

    .line 183
    iget-object v0, p0, Ljavax/microedition/lcdui/ChoiceGroup;->items:[Ljavax/microedition/lcdui/ChoiceGroup$ChoiceItem;

    iget v1, p0, Ljavax/microedition/lcdui/ChoiceGroup;->numOfItems:I

    const/4 v2, 0x0

    aput-object v2, v0, v1

    .line 186
    iget v0, p0, Ljavax/microedition/lcdui/ChoiceGroup;->highlightedItemIndex:I

    if-le v0, p1, :cond_5

    .line 187
    iget v0, p0, Ljavax/microedition/lcdui/ChoiceGroup;->highlightedItemIndex:I

    sub-int/2addr v0, v4

    iput v0, p0, Ljavax/microedition/lcdui/ChoiceGroup;->highlightedItemIndex:I

    .line 191
    :cond_5
    iget v0, p0, Ljavax/microedition/lcdui/ChoiceGroup;->highlightedItemIndex:I

    iget v1, p0, Ljavax/microedition/lcdui/ChoiceGroup;->numOfItems:I

    if-lt v0, v1, :cond_6

    .line 192
    iget v0, p0, Ljavax/microedition/lcdui/ChoiceGroup;->numOfItems:I

    sub-int/2addr v0, v4

    iput v0, p0, Ljavax/microedition/lcdui/ChoiceGroup;->highlightedItemIndex:I

    .line 195
    :cond_6
    iget v0, p0, Ljavax/microedition/lcdui/ChoiceGroup;->choiceType:I

    if-ne v0, v5, :cond_7

    .line 196
    iget-object v0, p0, Ljavax/microedition/lcdui/ChoiceGroup;->popupList:Ljavax/microedition/lcdui/List;

    invoke-virtual {v0, p1}, Ljavax/microedition/lcdui/List;->delete(I)V

    .line 197
    :cond_7
    invoke-virtual {p0}, Ljavax/microedition/lcdui/ChoiceGroup;->repaint()V

    .line 198
    return-void

    :cond_8
    move v1, v4

    .line 173
    goto :goto_0
.end method

.method public deleteAll()V
    .locals 3

    .prologue
    .line 202
    const/4 v0, 0x0

    .local v0, i:I
    :goto_0
    iget v1, p0, Ljavax/microedition/lcdui/ChoiceGroup;->numOfItems:I

    if-ge v0, v1, :cond_0

    .line 203
    iget-object v1, p0, Ljavax/microedition/lcdui/ChoiceGroup;->items:[Ljavax/microedition/lcdui/ChoiceGroup$ChoiceItem;

    const/4 v2, 0x0

    aput-object v2, v1, v0

    .line 202
    add-int/lit8 v0, v0, 0x1

    goto :goto_0

    .line 204
    :cond_0
    const/4 v1, 0x0

    iput v1, p0, Ljavax/microedition/lcdui/ChoiceGroup;->numOfItems:I

    .line 205
    const/4 v1, -0x1

    iput v1, p0, Ljavax/microedition/lcdui/ChoiceGroup;->highlightedItemIndex:I

    .line 206
    iget v1, p0, Ljavax/microedition/lcdui/ChoiceGroup;->choiceType:I

    const/4 v2, 0x4

    if-ne v1, v2, :cond_1

    .line 207
    iget-object v1, p0, Ljavax/microedition/lcdui/ChoiceGroup;->popupList:Ljavax/microedition/lcdui/List;

    invoke-virtual {v1}, Ljavax/microedition/lcdui/List;->deleteAll()V

    .line 208
    :cond_1
    invoke-virtual {p0}, Ljavax/microedition/lcdui/ChoiceGroup;->repaint()V

    .line 209
    return-void
.end method

.method public getFitPolicy()I
    .locals 1

    .prologue
    .line 213
    iget v0, p0, Ljavax/microedition/lcdui/ChoiceGroup;->fitPolicy:I

    return v0
.end method

.method public getFont(I)Ljavax/microedition/lcdui/Font;
    .locals 1
    .parameter "itemNum"

    .prologue
    .line 217
    if-ltz p1, :cond_0

    iget v0, p0, Ljavax/microedition/lcdui/ChoiceGroup;->numOfItems:I

    if-lt p1, v0, :cond_1

    .line 218
    :cond_0
    new-instance v0, Ljava/lang/IndexOutOfBoundsException;

    invoke-direct {v0}, Ljava/lang/IndexOutOfBoundsException;-><init>()V

    throw v0

    .line 220
    :cond_1
    iget-object v0, p0, Ljavax/microedition/lcdui/ChoiceGroup;->items:[Ljavax/microedition/lcdui/ChoiceGroup$ChoiceItem;

    aget-object v0, v0, p1

    invoke-virtual {v0}, Ljavax/microedition/lcdui/ChoiceGroup$ChoiceItem;->getFont()Ljavax/microedition/lcdui/Font;

    move-result-object v0

    return-object v0
.end method

.method getHeight()I
    .locals 4

    .prologue
    .line 476
    const/4 v0, 0x0

    .line 477
    .local v0, height:I
    iget v2, p0, Ljavax/microedition/lcdui/ChoiceGroup;->choiceType:I

    const/4 v3, 0x4

    if-ne v2, v3, :cond_1

    .line 478
    iget v2, p0, Ljavax/microedition/lcdui/ChoiceGroup;->highlightedItemIndex:I

    const/4 v3, -0x1

    if-eq v2, v3, :cond_0

    .line 479
    iget-object v2, p0, Ljavax/microedition/lcdui/ChoiceGroup;->items:[Ljavax/microedition/lcdui/ChoiceGroup$ChoiceItem;

    iget v3, p0, Ljavax/microedition/lcdui/ChoiceGroup;->highlightedItemIndex:I

    aget-object v2, v2, v3

    invoke-virtual {v2}, Ljavax/microedition/lcdui/ChoiceGroup$ChoiceItem;->getHeight()I

    move-result v2

    add-int/2addr v0, v2

    .line 487
    :cond_0
    invoke-super {p0}, Ljavax/microedition/lcdui/Item;->getHeight()I

    move-result v2

    add-int/2addr v2, v0

    return v2

    .line 482
    :cond_1
    const/4 v1, 0x0

    .local v1, i:I
    :goto_0
    iget v2, p0, Ljavax/microedition/lcdui/ChoiceGroup;->numOfItems:I

    if-ge v1, v2, :cond_0

    .line 483
    iget-object v2, p0, Ljavax/microedition/lcdui/ChoiceGroup;->items:[Ljavax/microedition/lcdui/ChoiceGroup$ChoiceItem;

    aget-object v2, v2, v1

    invoke-virtual {v2}, Ljavax/microedition/lcdui/ChoiceGroup$ChoiceItem;->getHeight()I

    move-result v2

    add-int/2addr v0, v2

    .line 482
    add-int/lit8 v1, v1, 0x1

    goto :goto_0
.end method

.method getHeightToItem(I)I
    .locals 3
    .parameter "itemIndex"

    .prologue
    .line 510
    const/4 v0, 0x0

    .line 512
    .local v0, height:I
    const/4 v1, 0x0

    .local v1, i:I
    :goto_0
    if-ge v1, p1, :cond_0

    .line 513
    iget-object v2, p0, Ljavax/microedition/lcdui/ChoiceGroup;->items:[Ljavax/microedition/lcdui/ChoiceGroup$ChoiceItem;

    aget-object v2, v2, v1

    invoke-virtual {v2}, Ljavax/microedition/lcdui/ChoiceGroup$ChoiceItem;->getHeight()I

    move-result v2

    add-int/2addr v0, v2

    .line 512
    add-int/lit8 v1, v1, 0x1

    goto :goto_0

    .line 516
    :cond_0
    return v0
.end method

.method public getImage(I)Ljavax/microedition/lcdui/Image;
    .locals 1
    .parameter "elementNum"

    .prologue
    .line 226
    if-ltz p1, :cond_0

    iget v0, p0, Ljavax/microedition/lcdui/ChoiceGroup;->numOfItems:I

    if-lt p1, v0, :cond_1

    .line 227
    :cond_0
    new-instance v0, Ljava/lang/IndexOutOfBoundsException;

    invoke-direct {v0}, Ljava/lang/IndexOutOfBoundsException;-><init>()V

    throw v0

    .line 230
    :cond_1
    iget-object v0, p0, Ljavax/microedition/lcdui/ChoiceGroup;->items:[Ljavax/microedition/lcdui/ChoiceGroup$ChoiceItem;

    aget-object v0, v0, p1

    invoke-virtual {v0}, Ljavax/microedition/lcdui/ChoiceGroup$ChoiceItem;->getImage()Ljavax/microedition/lcdui/Image;

    move-result-object v0

    return-object v0
.end method

.method getItemHeight(I)I
    .locals 1
    .parameter "itemIndex"

    .prologue
    .line 522
    iget-object v0, p0, Ljavax/microedition/lcdui/ChoiceGroup;->items:[Ljavax/microedition/lcdui/ChoiceGroup$ChoiceItem;

    aget-object v0, v0, p1

    invoke-virtual {v0}, Ljavax/microedition/lcdui/ChoiceGroup$ChoiceItem;->getHeight()I

    move-result v0

    return v0
.end method

.method getItemIndexAt(II)I
    .locals 3
    .parameter "x"
    .parameter "y"

    .prologue
    .line 495
    invoke-super {p0}, Ljavax/microedition/lcdui/Item;->getHeight()I

    move-result v2

    sub-int/2addr p1, v2

    .line 496
    const/4 v1, 0x0

    .line 497
    .local v1, testY:I
    const/4 v0, 0x0

    .local v0, i:I
    :goto_0
    iget v2, p0, Ljavax/microedition/lcdui/ChoiceGroup;->numOfItems:I

    if-ge v0, v2, :cond_1

    .line 498
    iget-object v2, p0, Ljavax/microedition/lcdui/ChoiceGroup;->items:[Ljavax/microedition/lcdui/ChoiceGroup$ChoiceItem;

    aget-object v2, v2, v0

    invoke-virtual {v2}, Ljavax/microedition/lcdui/ChoiceGroup$ChoiceItem;->getHeight()I

    move-result v2

    add-int/2addr v1, v2

    .line 499
    if-ge p2, v1, :cond_0

    move v2, v0

    .line 504
    :goto_1
    return v2

    .line 497
    :cond_0
    add-int/lit8 v0, v0, 0x1

    goto :goto_0

    .line 504
    :cond_1
    const/4 v2, -0x1

    goto :goto_1
.end method

.method public getSelectedFlags([Z)I
    .locals 4
    .parameter "selectedArray_return"

    .prologue
    .line 247
    if-nez p1, :cond_0

    .line 248
    new-instance v2, Ljava/lang/NullPointerException;

    invoke-direct {v2}, Ljava/lang/NullPointerException;-><init>()V

    throw v2

    .line 250
    :cond_0
    array-length v2, p1

    iget v3, p0, Ljavax/microedition/lcdui/ChoiceGroup;->numOfItems:I

    if-ge v2, v3, :cond_1

    .line 251
    new-instance v2, Ljava/lang/IllegalArgumentException;

    invoke-direct {v2}, Ljava/lang/IllegalArgumentException;-><init>()V

    throw v2

    .line 255
    :cond_1
    const/4 v1, 0x0

    .line 257
    .local v1, selectedItemsCount:I
    const/4 v0, 0x0

    .local v0, i:I
    :goto_0
    array-length v2, p1

    if-ge v0, v2, :cond_4

    .line 258
    iget v2, p0, Ljavax/microedition/lcdui/ChoiceGroup;->numOfItems:I

    if-ge v0, v2, :cond_3

    iget-object v2, p0, Ljavax/microedition/lcdui/ChoiceGroup;->items:[Ljavax/microedition/lcdui/ChoiceGroup$ChoiceItem;

    aget-object v2, v2, v0

    invoke-virtual {v2}, Ljavax/microedition/lcdui/ChoiceGroup$ChoiceItem;->isSelected()Z

    move-result v2

    :goto_1
    aput-boolean v2, p1, v0

    .line 259
    aget-boolean v2, p1, v0

    if-eqz v2, :cond_2

    .line 260
    add-int/lit8 v1, v1, 0x1

    .line 257
    :cond_2
    add-int/lit8 v0, v0, 0x1

    goto :goto_0

    .line 258
    :cond_3
    const/4 v2, 0x0

    goto :goto_1

    .line 264
    :cond_4
    return v1
.end method

.method public getSelectedIndex()I
    .locals 2

    .prologue
    .line 279
    iget v1, p0, Ljavax/microedition/lcdui/ChoiceGroup;->choiceType:I

    packed-switch v1, :pswitch_data_0

    .line 291
    :cond_0
    :pswitch_0
    const/4 v1, -0x1

    :goto_0
    return v1

    .line 284
    :pswitch_1
    const/4 v0, 0x0

    .local v0, i:I
    :goto_1
    iget v1, p0, Ljavax/microedition/lcdui/ChoiceGroup;->numOfItems:I

    if-ge v0, v1, :cond_0

    .line 285
    iget-object v1, p0, Ljavax/microedition/lcdui/ChoiceGroup;->items:[Ljavax/microedition/lcdui/ChoiceGroup$ChoiceItem;

    aget-object v1, v1, v0

    invoke-virtual {v1}, Ljavax/microedition/lcdui/ChoiceGroup$ChoiceItem;->isSelected()Z

    move-result v1

    if-eqz v1, :cond_1

    move v1, v0

    goto :goto_0

    .line 284
    :cond_1
    add-int/lit8 v0, v0, 0x1

    goto :goto_1

    .line 289
    .end local v0           #i:I
    :pswitch_2
    iget v1, p0, Ljavax/microedition/lcdui/ChoiceGroup;->highlightedItemIndex:I

    goto :goto_0

    .line 279
    :pswitch_data_0
    .packed-switch 0x1
        :pswitch_1
        :pswitch_0
        :pswitch_2
        :pswitch_1
    .end packed-switch
.end method

.method public getString(I)Ljava/lang/String;
    .locals 1
    .parameter "elementNum"

    .prologue
    .line 297
    if-ltz p1, :cond_0

    iget v0, p0, Ljavax/microedition/lcdui/ChoiceGroup;->numOfItems:I

    if-lt p1, v0, :cond_1

    .line 298
    :cond_0
    new-instance v0, Ljava/lang/IndexOutOfBoundsException;

    invoke-direct {v0}, Ljava/lang/IndexOutOfBoundsException;-><init>()V

    throw v0

    .line 301
    :cond_1
    iget-object v0, p0, Ljavax/microedition/lcdui/ChoiceGroup;->items:[Ljavax/microedition/lcdui/ChoiceGroup$ChoiceItem;

    aget-object v0, v0, p1

    invoke-virtual {v0}, Ljavax/microedition/lcdui/ChoiceGroup$ChoiceItem;->getText()Ljava/lang/String;

    move-result-object v0

    return-object v0
.end method

.method public insert(ILjava/lang/String;Ljavax/microedition/lcdui/Image;)V
    .locals 8
    .parameter "elementNum"
    .parameter "stringPart"
    .parameter "imagePart"

    .prologue
    const/4 v7, 0x4

    const/4 v6, 0x1

    const/4 v5, 0x0

    .line 307
    if-ltz p1, :cond_0

    iget v1, p0, Ljavax/microedition/lcdui/ChoiceGroup;->numOfItems:I

    if-le p1, v1, :cond_1

    .line 308
    :cond_0
    new-instance v1, Ljava/lang/IndexOutOfBoundsException;

    invoke-direct {v1}, Ljava/lang/IndexOutOfBoundsException;-><init>()V

    throw v1

    .line 310
    :cond_1
    if-nez p2, :cond_2

    .line 311
    new-instance v1, Ljava/lang/NullPointerException;

    invoke-direct {v1}, Ljava/lang/NullPointerException;-><init>()V

    throw v1

    .line 314
    :cond_2
    iget v1, p0, Ljavax/microedition/lcdui/ChoiceGroup;->choiceType:I

    if-ne v1, v7, :cond_3

    .line 315
    iget-object v1, p0, Ljavax/microedition/lcdui/ChoiceGroup;->popupList:Ljavax/microedition/lcdui/List;

    invoke-virtual {v1, p1, p2, p3}, Ljavax/microedition/lcdui/List;->insert(ILjava/lang/String;Ljavax/microedition/lcdui/Image;)V

    .line 318
    :cond_3
    iget v1, p0, Ljavax/microedition/lcdui/ChoiceGroup;->numOfItems:I

    iget-object v2, p0, Ljavax/microedition/lcdui/ChoiceGroup;->items:[Ljavax/microedition/lcdui/ChoiceGroup$ChoiceItem;

    array-length v2, v2

    if-ne v1, v2, :cond_4

    .line 319
    iget v1, p0, Ljavax/microedition/lcdui/ChoiceGroup;->numOfItems:I

    add-int/lit8 v1, v1, 0x4

    new-array v0, v1, [Ljavax/microedition/lcdui/ChoiceGroup$ChoiceItem;

    .line 320
    .local v0, newItems:[Ljavax/microedition/lcdui/ChoiceGroup$ChoiceItem;
    iget-object v1, p0, Ljavax/microedition/lcdui/ChoiceGroup;->items:[Ljavax/microedition/lcdui/ChoiceGroup$ChoiceItem;

    iget v2, p0, Ljavax/microedition/lcdui/ChoiceGroup;->numOfItems:I

    invoke-static {v1, v5, v0, v5, v2}, Ljava/lang/System;->arraycopy(Ljava/lang/Object;ILjava/lang/Object;II)V

    .line 321
    iput-object v0, p0, Ljavax/microedition/lcdui/ChoiceGroup;->items:[Ljavax/microedition/lcdui/ChoiceGroup$ChoiceItem;

    .line 324
    .end local v0           #newItems:[Ljavax/microedition/lcdui/ChoiceGroup$ChoiceItem;
    :cond_4
    iget-object v1, p0, Ljavax/microedition/lcdui/ChoiceGroup;->items:[Ljavax/microedition/lcdui/ChoiceGroup$ChoiceItem;

    iget-object v2, p0, Ljavax/microedition/lcdui/ChoiceGroup;->items:[Ljavax/microedition/lcdui/ChoiceGroup$ChoiceItem;

    add-int/lit8 v3, p1, 0x1

    iget v4, p0, Ljavax/microedition/lcdui/ChoiceGroup;->numOfItems:I

    sub-int/2addr v4, p1

    invoke-static {v1, p1, v2, v3, v4}, Ljava/lang/System;->arraycopy(Ljava/lang/Object;ILjava/lang/Object;II)V

    .line 327
    iget-object v1, p0, Ljavax/microedition/lcdui/ChoiceGroup;->items:[Ljavax/microedition/lcdui/ChoiceGroup$ChoiceItem;

    new-instance v2, Ljavax/microedition/lcdui/ChoiceGroup$ChoiceItem;

    const/4 v3, 0x0

    invoke-direct {v2, p0, v3, p3, p2}, Ljavax/microedition/lcdui/ChoiceGroup$ChoiceItem;-><init>(Ljavax/microedition/lcdui/ChoiceGroup;Ljava/lang/String;Ljavax/microedition/lcdui/Image;Ljava/lang/String;)V

    aput-object v2, v1, p1

    .line 329
    iget v1, p0, Ljavax/microedition/lcdui/ChoiceGroup;->numOfItems:I

    add-int/lit8 v1, v1, 0x1

    iput v1, p0, Ljavax/microedition/lcdui/ChoiceGroup;->numOfItems:I

    .line 331
    iget v1, p0, Ljavax/microedition/lcdui/ChoiceGroup;->numOfItems:I

    if-ne v1, v6, :cond_6

    .line 332
    iput v5, p0, Ljavax/microedition/lcdui/ChoiceGroup;->highlightedItemIndex:I

    .line 333
    iget v1, p0, Ljavax/microedition/lcdui/ChoiceGroup;->choiceType:I

    if-eq v6, v1, :cond_5

    iget v1, p0, Ljavax/microedition/lcdui/ChoiceGroup;->choiceType:I

    if-ne v7, v1, :cond_6

    .line 335
    :cond_5
    invoke-virtual {p0, v5, v6}, Ljavax/microedition/lcdui/ChoiceGroup;->setSelectedIndex(IZ)V

    .line 339
    :cond_6
    invoke-virtual {p0}, Ljavax/microedition/lcdui/ChoiceGroup;->repaint()V

    .line 340
    return-void
.end method

.method isFocusable()Z
    .locals 1

    .prologue
    .line 470
    const/4 v0, 0x1

    return v0
.end method

.method public isSelected(I)Z
    .locals 1
    .parameter "elementNum"

    .prologue
    .line 345
    if-ltz p1, :cond_0

    iget v0, p0, Ljavax/microedition/lcdui/ChoiceGroup;->numOfItems:I

    if-lt p1, v0, :cond_1

    .line 346
    :cond_0
    new-instance v0, Ljava/lang/IndexOutOfBoundsException;

    invoke-direct {v0}, Ljava/lang/IndexOutOfBoundsException;-><init>()V

    throw v0

    .line 349
    :cond_1
    iget-object v0, p0, Ljavax/microedition/lcdui/ChoiceGroup;->items:[Ljavax/microedition/lcdui/ChoiceGroup$ChoiceItem;

    aget-object v0, v0, p1

    invoke-virtual {v0}, Ljavax/microedition/lcdui/ChoiceGroup$ChoiceItem;->isSelected()Z

    move-result v0

    return v0
.end method

.method paint(Ljavax/microedition/lcdui/Graphics;)I
    .locals 6
    .parameter "g"

    .prologue
    const/4 v5, 0x0

    .line 528
    invoke-super {p0, p1}, Ljavax/microedition/lcdui/Item;->paintContent(Ljavax/microedition/lcdui/Graphics;)V

    .line 530
    invoke-super {p0}, Ljavax/microedition/lcdui/Item;->getHeight()I

    move-result v3

    invoke-virtual {p1, v5, v3}, Ljavax/microedition/lcdui/Graphics;->translate(II)V

    .line 531
    const/4 v2, 0x0

    .line 533
    .local v2, translatedY:I
    iget v3, p0, Ljavax/microedition/lcdui/ChoiceGroup;->choiceType:I

    const/4 v4, 0x4

    if-ne v3, v4, :cond_1

    .line 534
    invoke-virtual {p0}, Ljavax/microedition/lcdui/ChoiceGroup;->getSelectedIndex()I

    move-result v1

    .line 535
    .local v1, index:I
    const/4 v3, -0x1

    if-eq v1, v3, :cond_0

    .line 536
    iget-object v3, p0, Ljavax/microedition/lcdui/ChoiceGroup;->items:[Ljavax/microedition/lcdui/ChoiceGroup$ChoiceItem;

    aget-object v3, v3, v1

    invoke-virtual {p0}, Ljavax/microedition/lcdui/ChoiceGroup;->hasFocus()Z

    move-result v4

    invoke-virtual {v3, v4}, Ljavax/microedition/lcdui/ChoiceGroup$ChoiceItem;->invertPaint(Z)V

    .line 537
    iget-object v3, p0, Ljavax/microedition/lcdui/ChoiceGroup;->items:[Ljavax/microedition/lcdui/ChoiceGroup$ChoiceItem;

    aget-object v3, v3, v1

    invoke-virtual {v3, p1}, Ljavax/microedition/lcdui/ChoiceGroup$ChoiceItem;->paint(Ljavax/microedition/lcdui/Graphics;)I

    .line 539
    :cond_0
    invoke-super {p0}, Ljavax/microedition/lcdui/Item;->getHeight()I

    move-result v3

    neg-int v3, v3

    invoke-virtual {p1, v5, v3}, Ljavax/microedition/lcdui/Graphics;->translate(II)V

    .line 551
    .end local v1           #index:I
    :goto_0
    invoke-virtual {p0}, Ljavax/microedition/lcdui/ChoiceGroup;->getHeight()I

    move-result v3

    return v3

    .line 541
    :cond_1
    const/4 v0, 0x0

    .local v0, i:I
    :goto_1
    iget v3, p0, Ljavax/microedition/lcdui/ChoiceGroup;->numOfItems:I

    if-ge v0, v3, :cond_3

    .line 542
    iget-object v3, p0, Ljavax/microedition/lcdui/ChoiceGroup;->items:[Ljavax/microedition/lcdui/ChoiceGroup$ChoiceItem;

    aget-object v3, v3, v0

    iget v4, p0, Ljavax/microedition/lcdui/ChoiceGroup;->highlightedItemIndex:I

    if-ne v0, v4, :cond_2

    invoke-virtual {p0}, Ljavax/microedition/lcdui/ChoiceGroup;->hasFocus()Z

    move-result v4

    if-eqz v4, :cond_2

    const/4 v4, 0x1

    :goto_2
    invoke-virtual {v3, v4}, Ljavax/microedition/lcdui/ChoiceGroup$ChoiceItem;->invertPaint(Z)V

    .line 543
    iget-object v3, p0, Ljavax/microedition/lcdui/ChoiceGroup;->items:[Ljavax/microedition/lcdui/ChoiceGroup$ChoiceItem;

    aget-object v3, v3, v0

    invoke-virtual {v3, p1}, Ljavax/microedition/lcdui/ChoiceGroup$ChoiceItem;->paint(Ljavax/microedition/lcdui/Graphics;)I

    .line 544
    iget-object v3, p0, Ljavax/microedition/lcdui/ChoiceGroup;->items:[Ljavax/microedition/lcdui/ChoiceGroup$ChoiceItem;

    aget-object v3, v3, v0

    invoke-virtual {v3}, Ljavax/microedition/lcdui/ChoiceGroup$ChoiceItem;->getHeight()I

    move-result v3

    invoke-virtual {p1, v5, v3}, Ljavax/microedition/lcdui/Graphics;->translate(II)V

    .line 545
    iget-object v3, p0, Ljavax/microedition/lcdui/ChoiceGroup;->items:[Ljavax/microedition/lcdui/ChoiceGroup$ChoiceItem;

    aget-object v3, v3, v0

    invoke-virtual {v3}, Ljavax/microedition/lcdui/ChoiceGroup$ChoiceItem;->getHeight()I

    move-result v3

    add-int/2addr v2, v3

    .line 541
    add-int/lit8 v0, v0, 0x1

    goto :goto_1

    :cond_2
    move v4, v5

    .line 542
    goto :goto_2

    .line 547
    :cond_3
    neg-int v3, v2

    invoke-virtual {p1, v5, v3}, Ljavax/microedition/lcdui/Graphics;->translate(II)V

    .line 548
    invoke-super {p0}, Ljavax/microedition/lcdui/Item;->getHeight()I

    move-result v3

    neg-int v3, v3

    invoke-virtual {p1, v5, v3}, Ljavax/microedition/lcdui/Graphics;->translate(II)V

    goto :goto_0
.end method

.method repaint()V
    .locals 2

    .prologue
    .line 656
    iget v0, p0, Ljavax/microedition/lcdui/ChoiceGroup;->choiceType:I

    const/4 v1, 0x4

    if-ne v0, v1, :cond_0

    .line 657
    iget-object v0, p0, Ljavax/microedition/lcdui/ChoiceGroup;->popupList:Ljavax/microedition/lcdui/List;

    invoke-virtual {v0}, Ljavax/microedition/lcdui/List;->repaint()V

    .line 658
    :cond_0
    invoke-super {p0}, Ljavax/microedition/lcdui/Item;->repaint()V

    .line 659
    return-void
.end method

.method select()Z
    .locals 5

    .prologue
    const/4 v4, 0x1

    const/4 v3, 0x0

    .line 557
    iget v0, p0, Ljavax/microedition/lcdui/ChoiceGroup;->numOfItems:I

    if-nez v0, :cond_0

    move v0, v3

    .line 573
    :goto_0
    return v0

    .line 561
    :cond_0
    iget v0, p0, Ljavax/microedition/lcdui/ChoiceGroup;->choiceType:I

    const/4 v1, 0x4

    if-ne v0, v1, :cond_1

    .line 562
    invoke-virtual {p0}, Ljavax/microedition/lcdui/ChoiceGroup;->getOwner()Ljavax/microedition/lcdui/Screen;

    move-result-object v0

    iget-object v0, v0, Ljavax/microedition/lcdui/Screen;->currentDisplay:Ljavax/microedition/lcdui/Display;

    iget-object v1, p0, Ljavax/microedition/lcdui/ChoiceGroup;->popupList:Ljavax/microedition/lcdui/List;

    invoke-virtual {v0, v1}, Ljavax/microedition/lcdui/Display;->setCurrent(Ljavax/microedition/lcdui/Displayable;)V

    :goto_1
    move v0, v4

    .line 573
    goto :goto_0

    .line 570
    :cond_1
    iget v0, p0, Ljavax/microedition/lcdui/ChoiceGroup;->highlightedItemIndex:I

    iget-object v1, p0, Ljavax/microedition/lcdui/ChoiceGroup;->items:[Ljavax/microedition/lcdui/ChoiceGroup$ChoiceItem;

    iget v2, p0, Ljavax/microedition/lcdui/ChoiceGroup;->highlightedItemIndex:I

    aget-object v1, v1, v2

    invoke-virtual {v1}, Ljavax/microedition/lcdui/ChoiceGroup$ChoiceItem;->isSelected()Z

    move-result v1

    if-nez v1, :cond_2

    move v1, v4

    :goto_2
    invoke-virtual {p0, v0, v1}, Ljavax/microedition/lcdui/ChoiceGroup;->setSelectedIndex(IZ)V

    goto :goto_1

    :cond_2
    move v1, v3

    goto :goto_2
.end method

.method public set(ILjava/lang/String;Ljavax/microedition/lcdui/Image;)V
    .locals 2
    .parameter "elementNum"
    .parameter "stringPart"
    .parameter "imagePart"

    .prologue
    .line 355
    if-ltz p1, :cond_0

    iget v0, p0, Ljavax/microedition/lcdui/ChoiceGroup;->numOfItems:I

    if-lt p1, v0, :cond_1

    .line 356
    :cond_0
    new-instance v0, Ljava/lang/IndexOutOfBoundsException;

    invoke-direct {v0}, Ljava/lang/IndexOutOfBoundsException;-><init>()V

    throw v0

    .line 358
    :cond_1
    if-eqz p3, :cond_2

    invoke-virtual {p3}, Ljavax/microedition/lcdui/Image;->isMutable()Z

    move-result v0

    if-eqz v0, :cond_2

    .line 359
    new-instance v0, Ljava/lang/IllegalArgumentException;

    invoke-direct {v0}, Ljava/lang/IllegalArgumentException;-><init>()V

    throw v0

    .line 361
    :cond_2
    if-nez p2, :cond_3

    .line 362
    new-instance v0, Ljava/lang/NullPointerException;

    invoke-direct {v0}, Ljava/lang/NullPointerException;-><init>()V

    throw v0

    .line 365
    :cond_3
    iget-object v0, p0, Ljavax/microedition/lcdui/ChoiceGroup;->items:[Ljavax/microedition/lcdui/ChoiceGroup$ChoiceItem;

    aget-object v0, v0, p1

    invoke-virtual {v0, p2}, Ljavax/microedition/lcdui/ChoiceGroup$ChoiceItem;->setText(Ljava/lang/String;)V

    .line 366
    iget-object v0, p0, Ljavax/microedition/lcdui/ChoiceGroup;->items:[Ljavax/microedition/lcdui/ChoiceGroup$ChoiceItem;

    aget-object v0, v0, p1

    invoke-virtual {v0, p3}, Ljavax/microedition/lcdui/ChoiceGroup$ChoiceItem;->setImage(Ljavax/microedition/lcdui/Image;)V

    .line 368
    iget v0, p0, Ljavax/microedition/lcdui/ChoiceGroup;->choiceType:I

    const/4 v1, 0x4

    if-ne v0, v1, :cond_4

    .line 369
    iget-object v0, p0, Ljavax/microedition/lcdui/ChoiceGroup;->popupList:Ljavax/microedition/lcdui/List;

    invoke-virtual {v0, p1, p2, p3}, Ljavax/microedition/lcdui/List;->set(ILjava/lang/String;Ljavax/microedition/lcdui/Image;)V

    .line 372
    :cond_4
    invoke-virtual {p0}, Ljavax/microedition/lcdui/ChoiceGroup;->repaint()V

    .line 373
    return-void
.end method

.method public setFitPolicy(I)V
    .locals 2
    .parameter "policy"

    .prologue
    .line 376
    if-eqz p1, :cond_0

    const/4 v0, 0x1

    if-eq p1, v0, :cond_0

    const/4 v0, 0x2

    if-eq p1, v0, :cond_0

    .line 379
    new-instance v0, Ljava/lang/IllegalArgumentException;

    const-string v1, "Bad Policy"

    invoke-direct {v0, v1}, Ljava/lang/IllegalArgumentException;-><init>(Ljava/lang/String;)V

    throw v0

    .line 380
    :cond_0
    iput p1, p0, Ljavax/microedition/lcdui/ChoiceGroup;->fitPolicy:I

    .line 381
    iget v0, p0, Ljavax/microedition/lcdui/ChoiceGroup;->choiceType:I

    const/4 v1, 0x4

    if-ne v0, v1, :cond_1

    .line 382
    iget-object v0, p0, Ljavax/microedition/lcdui/ChoiceGroup;->popupList:Ljavax/microedition/lcdui/List;

    invoke-virtual {v0, p1}, Ljavax/microedition/lcdui/List;->setFitPolicy(I)V

    .line 384
    :cond_1
    return-void
.end method

.method public setFont(ILjavax/microedition/lcdui/Font;)V
    .locals 2
    .parameter "itemNum"
    .parameter "font"

    .prologue
    .line 387
    if-ltz p1, :cond_0

    iget v0, p0, Ljavax/microedition/lcdui/ChoiceGroup;->numOfItems:I

    if-lt p1, v0, :cond_1

    .line 388
    :cond_0
    new-instance v0, Ljava/lang/IndexOutOfBoundsException;

    invoke-direct {v0}, Ljava/lang/IndexOutOfBoundsException;-><init>()V

    throw v0

    .line 390
    :cond_1
    iget-object v0, p0, Ljavax/microedition/lcdui/ChoiceGroup;->items:[Ljavax/microedition/lcdui/ChoiceGroup$ChoiceItem;

    aget-object v0, v0, p1

    invoke-virtual {v0, p2}, Ljavax/microedition/lcdui/ChoiceGroup$ChoiceItem;->setFont(Ljavax/microedition/lcdui/Font;)V

    .line 391
    iget v0, p0, Ljavax/microedition/lcdui/ChoiceGroup;->choiceType:I

    const/4 v1, 0x4

    if-ne v0, v1, :cond_2

    .line 392
    iget-object v0, p0, Ljavax/microedition/lcdui/ChoiceGroup;->popupList:Ljavax/microedition/lcdui/List;

    invoke-virtual {v0, p1, p2}, Ljavax/microedition/lcdui/List;->setFont(ILjavax/microedition/lcdui/Font;)V

    .line 394
    :cond_2
    return-void
.end method

.method public setSelectedFlags([Z)V
    .locals 5
    .parameter "selectedArray"

    .prologue
    const/4 v4, 0x1

    .line 399
    if-nez p1, :cond_0

    .line 400
    new-instance v2, Ljava/lang/NullPointerException;

    invoke-direct {v2}, Ljava/lang/NullPointerException;-><init>()V

    throw v2

    .line 402
    :cond_0
    array-length v2, p1

    iget v3, p0, Ljavax/microedition/lcdui/ChoiceGroup;->numOfItems:I

    if-ge v2, v3, :cond_1

    .line 403
    new-instance v2, Ljava/lang/NullPointerException;

    invoke-direct {v2}, Ljava/lang/NullPointerException;-><init>()V

    throw v2

    .line 406
    :cond_1
    iget v2, p0, Ljavax/microedition/lcdui/ChoiceGroup;->numOfItems:I

    if-nez v2, :cond_3

    .line 431
    :cond_2
    :goto_0
    return-void

    .line 409
    :cond_3
    iget v2, p0, Ljavax/microedition/lcdui/ChoiceGroup;->choiceType:I

    const/4 v3, 0x2

    if-ne v2, v3, :cond_4

    .line 410
    const/4 v0, 0x0

    .local v0, i:I
    :goto_1
    iget v2, p0, Ljavax/microedition/lcdui/ChoiceGroup;->numOfItems:I

    if-ge v0, v2, :cond_2

    .line 411
    aget-boolean v2, p1, v0

    invoke-virtual {p0, v0, v2}, Ljavax/microedition/lcdui/ChoiceGroup;->setSelectedIndex(IZ)V

    .line 410
    add-int/lit8 v0, v0, 0x1

    goto :goto_1

    .line 414
    .end local v0           #i:I
    :cond_4
    const/4 v1, -0x1

    .line 415
    .local v1, selectedItem:I
    const/4 v0, 0x0

    .restart local v0       #i:I
    :goto_2
    iget v2, p0, Ljavax/microedition/lcdui/ChoiceGroup;->numOfItems:I

    if-ge v0, v2, :cond_5

    .line 416
    aget-boolean v2, p1, v0

    if-eqz v2, :cond_7

    .line 417
    invoke-virtual {p0, v0, v4}, Ljavax/microedition/lcdui/ChoiceGroup;->setSelectedIndex(IZ)V

    .line 418
    move v1, v0

    .line 422
    :cond_5
    const/4 v2, -0x1

    if-ne v1, v2, :cond_6

    .line 423
    const/4 v2, 0x0

    invoke-virtual {p0, v2, v4}, Ljavax/microedition/lcdui/ChoiceGroup;->setSelectedIndex(IZ)V

    .line 426
    :cond_6
    iget v2, p0, Ljavax/microedition/lcdui/ChoiceGroup;->choiceType:I

    const/4 v3, 0x4

    if-ne v2, v3, :cond_2

    .line 427
    iget-object v2, p0, Ljavax/microedition/lcdui/ChoiceGroup;->popupList:Ljavax/microedition/lcdui/List;

    invoke-virtual {v2, p1}, Ljavax/microedition/lcdui/List;->setSelectedFlags([Z)V

    goto :goto_0

    .line 415
    :cond_7
    add-int/lit8 v0, v0, 0x1

    goto :goto_2
.end method

.method public setSelectedIndex(IZ)V
    .locals 5
    .parameter "elementNum"
    .parameter "selected"

    .prologue
    const/4 v4, 0x4

    const/4 v3, 0x1

    .line 436
    if-ltz p1, :cond_0

    iget v1, p0, Ljavax/microedition/lcdui/ChoiceGroup;->numOfItems:I

    if-lt p1, v1, :cond_1

    .line 437
    :cond_0
    new-instance v1, Ljava/lang/IndexOutOfBoundsException;

    invoke-direct {v1}, Ljava/lang/IndexOutOfBoundsException;-><init>()V

    throw v1

    .line 440
    :cond_1
    iput p1, p0, Ljavax/microedition/lcdui/ChoiceGroup;->highlightedItemIndex:I

    .line 441
    iget v1, p0, Ljavax/microedition/lcdui/ChoiceGroup;->choiceType:I

    if-eq v1, v3, :cond_2

    iget v1, p0, Ljavax/microedition/lcdui/ChoiceGroup;->choiceType:I

    if-ne v1, v4, :cond_7

    :cond_2
    if-eqz p2, :cond_7

    .line 443
    const/4 v0, 0x0

    .local v0, i:I
    :goto_0
    iget v1, p0, Ljavax/microedition/lcdui/ChoiceGroup;->numOfItems:I

    if-ge v0, v1, :cond_4

    .line 444
    iget-object v1, p0, Ljavax/microedition/lcdui/ChoiceGroup;->items:[Ljavax/microedition/lcdui/ChoiceGroup$ChoiceItem;

    aget-object v1, v1, v0

    if-ne p1, v0, :cond_3

    move v2, v3

    :goto_1
    invoke-virtual {v1, v2}, Ljavax/microedition/lcdui/ChoiceGroup$ChoiceItem;->setSelectedState(Z)V

    .line 443
    add-int/lit8 v0, v0, 0x1

    goto :goto_0

    .line 444
    :cond_3
    const/4 v2, 0x0

    goto :goto_1

    .line 446
    :cond_4
    iget v1, p0, Ljavax/microedition/lcdui/ChoiceGroup;->choiceType:I

    if-ne v1, v4, :cond_5

    .line 447
    iget-object v1, p0, Ljavax/microedition/lcdui/ChoiceGroup;->popupList:Ljavax/microedition/lcdui/List;

    invoke-virtual {v1, p1, v3}, Ljavax/microedition/lcdui/List;->setSelectedIndex(IZ)V

    .line 449
    :cond_5
    invoke-virtual {p0}, Ljavax/microedition/lcdui/ChoiceGroup;->repaint()V

    .line 459
    .end local v0           #i:I
    :cond_6
    :goto_2
    return-void

    .line 450
    :cond_7
    iget v1, p0, Ljavax/microedition/lcdui/ChoiceGroup;->choiceType:I

    const/4 v2, 0x2

    if-ne v1, v2, :cond_8

    .line 451
    iget-object v1, p0, Ljavax/microedition/lcdui/ChoiceGroup;->items:[Ljavax/microedition/lcdui/ChoiceGroup$ChoiceItem;

    aget-object v1, v1, p1

    invoke-virtual {v1, p2}, Ljavax/microedition/lcdui/ChoiceGroup$ChoiceItem;->setSelectedState(Z)V

    .line 452
    invoke-virtual {p0}, Ljavax/microedition/lcdui/ChoiceGroup;->repaint()V

    goto :goto_2

    .line 453
    :cond_8
    iget v1, p0, Ljavax/microedition/lcdui/ChoiceGroup;->choiceType:I

    const/4 v2, 0x3

    if-ne v1, v2, :cond_6

    .line 454
    if-eqz p2, :cond_6

    .line 455
    iget-object v1, p0, Ljavax/microedition/lcdui/ChoiceGroup;->items:[Ljavax/microedition/lcdui/ChoiceGroup$ChoiceItem;

    aget-object v1, v1, p1

    invoke-virtual {v1, p2}, Ljavax/microedition/lcdui/ChoiceGroup$ChoiceItem;->setSelectedState(Z)V

    .line 456
    invoke-virtual {p0}, Ljavax/microedition/lcdui/ChoiceGroup;->repaint()V

    goto :goto_2
.end method

.method public size()I
    .locals 1

    .prologue
    .line 464
    iget v0, p0, Ljavax/microedition/lcdui/ChoiceGroup;->numOfItems:I

    return v0
.end method

.method traverse(IIIZ)I
    .locals 8
    .parameter "gameKeyCode"
    .parameter "top"
    .parameter "bottom"
    .parameter "action"

    .prologue
    const/4 v7, 0x6

    const v6, 0x7fffffff

    const/4 v5, 0x1

    .line 581
    iget v3, p0, Ljavax/microedition/lcdui/ChoiceGroup;->choiceType:I

    const/4 v4, 0x4

    if-ne v3, v4, :cond_6

    .line 583
    if-ne p1, v5, :cond_1

    .line 584
    if-lez p2, :cond_0

    .line 585
    neg-int v3, p2

    .line 650
    :goto_0
    return v3

    :cond_0
    move v3, v6

    .line 587
    goto :goto_0

    .line 589
    :cond_1
    if-ne p1, v7, :cond_4

    .line 590
    if-nez p4, :cond_5

    .line 591
    invoke-super {p0}, Ljavax/microedition/lcdui/Item;->getHeight()I

    move-result v0

    .line 592
    .local v0, height:I
    invoke-virtual {p0}, Ljavax/microedition/lcdui/ChoiceGroup;->getSelectedIndex()I

    move-result v2

    .line 593
    .local v2, index:I
    const/4 v3, -0x1

    if-eq v2, v3, :cond_2

    .line 594
    iget-object v3, p0, Ljavax/microedition/lcdui/ChoiceGroup;->items:[Ljavax/microedition/lcdui/ChoiceGroup$ChoiceItem;

    aget-object v3, v3, v2

    invoke-virtual {v3}, Ljavax/microedition/lcdui/ChoiceGroup$ChoiceItem;->getHeight()I

    move-result v3

    add-int/2addr v0, v3

    .line 597
    :cond_2
    if-le v0, p3, :cond_3

    .line 598
    sub-int v3, v0, p3

    goto :goto_0

    .line 600
    :cond_3
    invoke-virtual {p0}, Ljavax/microedition/lcdui/ChoiceGroup;->repaint()V

    .line 650
    .end local v0           #height:I
    .end local v2           #index:I
    :cond_4
    :goto_1
    const/4 v3, 0x0

    goto :goto_0

    :cond_5
    move v3, v6

    .line 603
    goto :goto_0

    .line 607
    :cond_6
    if-ne p1, v5, :cond_a

    .line 608
    iget v3, p0, Ljavax/microedition/lcdui/ChoiceGroup;->highlightedItemIndex:I

    if-lez v3, :cond_e

    .line 609
    if-eqz p4, :cond_7

    .line 610
    iget v3, p0, Ljavax/microedition/lcdui/ChoiceGroup;->highlightedItemIndex:I

    sub-int/2addr v3, v5

    iput v3, p0, Ljavax/microedition/lcdui/ChoiceGroup;->highlightedItemIndex:I

    .line 612
    :cond_7
    invoke-super {p0}, Ljavax/microedition/lcdui/Item;->getHeight()I

    move-result v0

    .line 613
    .restart local v0       #height:I
    const/4 v1, 0x0

    .local v1, i:I
    :goto_2
    iget v3, p0, Ljavax/microedition/lcdui/ChoiceGroup;->highlightedItemIndex:I

    if-ge v1, v3, :cond_8

    .line 614
    iget-object v3, p0, Ljavax/microedition/lcdui/ChoiceGroup;->items:[Ljavax/microedition/lcdui/ChoiceGroup$ChoiceItem;

    aget-object v3, v3, v1

    invoke-virtual {v3}, Ljavax/microedition/lcdui/ChoiceGroup$ChoiceItem;->getHeight()I

    move-result v3

    add-int/2addr v0, v3

    .line 613
    add-int/lit8 v1, v1, 0x1

    goto :goto_2

    .line 616
    :cond_8
    if-ge v0, p2, :cond_9

    .line 617
    sub-int v3, v0, p2

    goto :goto_0

    .line 619
    :cond_9
    invoke-virtual {p0}, Ljavax/microedition/lcdui/ChoiceGroup;->repaint()V

    .line 629
    .end local v0           #height:I
    .end local v1           #i:I
    :cond_a
    if-ne p1, v7, :cond_4

    .line 630
    if-nez p4, :cond_b

    iget v3, p0, Ljavax/microedition/lcdui/ChoiceGroup;->highlightedItemIndex:I

    iget v4, p0, Ljavax/microedition/lcdui/ChoiceGroup;->numOfItems:I

    if-lt v3, v4, :cond_c

    :cond_b
    if-eqz p4, :cond_12

    iget v3, p0, Ljavax/microedition/lcdui/ChoiceGroup;->highlightedItemIndex:I

    iget v4, p0, Ljavax/microedition/lcdui/ChoiceGroup;->numOfItems:I

    sub-int/2addr v4, v5

    if-ge v3, v4, :cond_12

    .line 632
    :cond_c
    if-eqz p4, :cond_d

    .line 633
    iget v3, p0, Ljavax/microedition/lcdui/ChoiceGroup;->highlightedItemIndex:I

    add-int/lit8 v3, v3, 0x1

    iput v3, p0, Ljavax/microedition/lcdui/ChoiceGroup;->highlightedItemIndex:I

    .line 635
    :cond_d
    invoke-super {p0}, Ljavax/microedition/lcdui/Item;->getHeight()I

    move-result v0

    .line 636
    .restart local v0       #height:I
    const/4 v1, 0x0

    .restart local v1       #i:I
    :goto_3
    iget v3, p0, Ljavax/microedition/lcdui/ChoiceGroup;->highlightedItemIndex:I

    if-gt v1, v3, :cond_10

    .line 637
    iget-object v3, p0, Ljavax/microedition/lcdui/ChoiceGroup;->items:[Ljavax/microedition/lcdui/ChoiceGroup$ChoiceItem;

    aget-object v3, v3, v1

    invoke-virtual {v3}, Ljavax/microedition/lcdui/ChoiceGroup$ChoiceItem;->getHeight()I

    move-result v3

    add-int/2addr v0, v3

    .line 636
    add-int/lit8 v1, v1, 0x1

    goto :goto_3

    .line 622
    .end local v0           #height:I
    .end local v1           #i:I
    :cond_e
    if-lez p2, :cond_f

    .line 623
    neg-int v3, p2

    goto/16 :goto_0

    :cond_f
    move v3, v6

    .line 625
    goto/16 :goto_0

    .line 639
    .restart local v0       #height:I
    .restart local v1       #i:I
    :cond_10
    if-le v0, p3, :cond_11

    .line 640
    sub-int v3, v0, p3

    goto/16 :goto_0

    .line 642
    :cond_11
    invoke-virtual {p0}, Ljavax/microedition/lcdui/ChoiceGroup;->repaint()V

    goto :goto_1

    .end local v0           #height:I
    .end local v1           #i:I
    :cond_12
    move v3, v6

    .line 645
    goto/16 :goto_0
.end method
